{{extend ('./layout.html')}}

{{#block ("body")}}
{{extend ('./menu.html')}}
<div class="main-container">
	<div class="padding-md">
		<h2 class="header-text">
			Form Element
			<span class="sub-header">
				Basic form elements
			</span>
		</h2>
		<div class="smart-widget m-top-lg widget-dark-blue">
			<div class="smart-widget-header">
				编辑周记
				<span class="smart-widget-option">
					<span class="refresh-icon-animated">
						<i class="fa fa-circle-o-notch fa-spin"></i>
					</span>
                    <a href="#" class="widget-toggle-hidden-option">
                        <i class="fa fa-cog"></i>
                    </a>
                    <a href="#" class="widget-collapse-option" data-toggle="collapse">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a href="#" class="widget-refresh-option">
                        <i class="fa fa-refresh"></i>
                    </a>
                    <a href="#" class="widget-remove-option">
                        <i class="fa fa-times"></i>
                    </a>
                </span>
			</div>
			<div class="smart-widget-inner">
				<div class="smart-widget-hidden-section">
					<ul class="widget-color-list clearfix">
						<li style="background-color:#20232b;" data-color="widget-dark"></li>
						<li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
						<li style="background-color:#23b7e5;" data-color="widget-blue"></li>
						<li style="background-color:#2baab1;" data-color="widget-green"></li>
						<li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
						<li style="background-color:#fbc852;" data-color="widget-orange"></li>
						<li style="background-color:#e36159;" data-color="widget-red"></li>
						<li style="background-color:#7266ba;" data-color="widget-purple"></li>
						<li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
						<li style="background-color:#fff;" data-color="reset"></li>
					</ul>
				</div>
				<div class="smart-widget-body">
					<form action="/weekly/weeklyEdit?weekly_id={{weekly.weekly_id}}" method="post" enctype="multipart/form-data">
						<div class="form-group">
							<label for="weekly_name">周记名称</label>
							<input type="text" class="form-control" id="weekly_name" value="{{weekly.weekly_name}}" name="weekly_name" placeholder="请输入周记名称">
						</div><!-- /form-group -->

						<div class="form-group">
							<label for="weekly_content">周记内容</label>
							<textarea name="weekly_content" id="weekly_content" class="form-control" placeholder="请输入周记内容" cols="30" rows="10">{{weekly.weekly_content}}</textarea>
						</div><!-- /form-group -->

						<div class="form-group">
							<label for="weekly_attr">附件</label>
							<input type="text" class="form-control" id="weekly_attr" value="{{weekly.weekly_attr}}" placeholder="请输入地址" name="weekly_attr">
						</div><!-- /form-group -->

						<!-- <div class="form-group">
							<label for="weekly_img">用户头像</label>
							<input type="file" class="form-control" id="weekly_img" name="weekly_img" />
						</div> -->

						<!-- <div class="form-group">
							<label for="weekly_img">预览</label>
							<span style="display:inline-block;width:100px;height:100px;">
								<img class="img img-responsive" src="{{weekly.weekly_img}}" alt="">
							</span>
						</div> -->

						<div class="form-group">
							<div>
								<button type="submit" class="btn btn-success btn-sm">提交</button>
							</div><!-- /.col -->
						</div><!-- /form-group -->
					</form>
				</div>
			</div><!-- ./smart-widget-inner -->
		</div><!-- ./smart-widget -->

	</div><!-- ./padding-md -->
</div><!-- /main-container -->
{{/block}}